// const x: 1 = 1

// interface IRes {
//   code: number,
//   status: string,
//   data: any
// }

interface IRes {
  code: Code,
  status: 'success' | 'error',
  data: any
}

type Code = 10000 | 10001 | 10002 | 50000